<!--导航-->

<?php

$selectIndex = 0;

$ctr = request()->controller();
$act = request()->action();

switch(strtolower($ctr)){
	case 'index' :
		$selectIndex = 0;
		break;
	case 'agentshop' :
		$selectIndex = 1;
		break;
	case 'message' :
		$selectIndex = 2;
		break;
	case 'member' :
		$selectIndex = 3;
		break;
}

if(empty($data['msg'])){
	$data['msg'] = 0;
}
?>
<style>
footer a{ float:left; }
</style>
<div>
<div style="height: 95px;"></div>
<footer class="g-fixed-content  g-reset g-tc g-lh-44 g-bt" style="z-index: 20;">
<a class="g-flex g-fd-c g-col g-relative g-inline<?php echo $selectIndex == 0 ? ' g-blue-middle':'';?>" href="/" style="font-weight: bold; width: 25%;"><div><i class="iconfont icon-daili g-fs-36" style="padding-top: 5px;"></i><div class="g-fs-26">代理</div></div></a>
<a class="g-flex g-fd-c g-col g-relative g-inline<?php echo $selectIndex == 1 ? ' g-blue-middle':'';?>" href="{:url('Agentshop/index')}" style="font-weight: bold; width: 25%; pointer-events: auto;"><div><i class="iconfont icon-footer-sale-copy g-fs-36" style="padding-top: 5px;"></i><div class="g-fs-26">零售</div></div></a>
<a class="g-flex g-fd-c g-col g-relative g-inline<?php echo $selectIndex == 2 ? ' g-blue-middle':'';?>" href="{:url('Message/index')}" style="font-weight: bold; width: 25%; pointer-events: auto;"><div>{if condition="$data.msg gt 0"}<i class="g-absolute" style="display: block; height: 18px; width: 18px; top: 8px; right: 36%; background: rgb(246, 111, 98); border-radius: 9px;"></i>{/if}<i class="iconfont icon-xiaoxi g-fs-36" style="padding-top: 5px;"></i><div class="g-fs-26">消息</div></div></a>
<a class="g-flex g-fd-c g-col g-relative g-inline<?php echo $selectIndex == 3 ? ' g-blue-middle':'';?>" href="{:url('Member/mine')}" style="font-weight: bold; width: 25%; pointer-events: auto;"><div><i class="iconfont icon-wode1 g-fs-36" style="padding-top: 5px;"></i><div class="g-fs-26">我</div></div></a>
</footer>
</div>
